package com.seal.tsms.base.entity;

import com.seal.tsms.system.entity.SystemUser;

import javax.persistence.*;

/**
 * Created by seal.jing on 2015/12/26.
 */
@MappedSuperclass
public abstract class BaseEntity extends IdEntity {
    @Column(name="CREATE_TIME")
    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "CREATE_USER_ID")
    public SystemUser getCreateUser() {
        return createUser;
    }

    public void setCreateUser(SystemUser createUser) {
        this.createUser = createUser;
    }

    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "UPDATE_USER_ID")
    public SystemUser getUpdateUser() {
        return updateUser;
    }

    public void setUpdateUser(SystemUser updateUser) {
        this.updateUser = updateUser;
    }

    @Column(name="UPDATE_TIME")
    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

    private String createTime;
    private String updateTime;
    private SystemUser createUser;
    private SystemUser updateUser;

}
